import { Component, OnInit, Input } from '@angular/core';
import { Assembly, AssemblyValidators } from '../../../fb-design.model';


@Component({
    selector: 'qk-text',
    template: `
        <div [ngStyle]="assembly.attributes.style">{{assembly.value}}</div>
    `,
    styles: [``],
    providers: []
})
export class QkText implements OnInit {
    @Input() assembly: Assembly;
    @Input() mode: number;
    constructor() { }

    ngOnInit() { }

    ngDoCheck() {
        this.assembly.attributes.refreshStyle();
    }
}
